package com.wwtech.epp.ui.activity.mine.contract;

import android.content.Intent;

import com.wwtech.epp.entity.User;
import com.wwtech.epp.ui.activity.base.BasePresenter;
import com.wwtech.epp.ui.activity.base.BaseView;

import java.util.Map;

/**
 * @author hzp
 * @Package The contract for MyInfoActivity
 * @Description: $description
 * @date 2017/08/31 21:07:09
 */
public interface MyInfoContract {
    interface View extends BaseView<MyInfoContractPresenter> {
        /**
         *
         */
        void showProgressDialog();

        /**
         *
         */
        void closeProgressDialog();
        void setMyInfo(User user);
    }

    interface MyInfoContractPresenter extends BasePresenter {
        /**
         *
         */
        void getMyInfo(String uid);

        void setMyInfo(String uid, Map map);   // RequestBody userId, RequestBody nickName

        void fromCameraUpLoad();
        void fromAlbumUpLoad();
        void onActivityResult(int requestCode, int resultCode, Intent data);
        void upLoadImg();
        void setUid(String uid);
    }
}